/* Copied from static/css/display.css */
.display-body { background: #000; color: #fff; overflow: hidden; }
.display-container { width: 100vw; height: 100vh; display: flex; flex-direction: column; background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); }
.display-header { background: rgba(255, 255, 255, 0.95); padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #fff; }
.logo-text { font-size: 2rem; font-weight: bold; color: #333; text-align: center; }
.display-title { font-size: 3rem; font-weight: bold; text-align: center; flex: 1; color: #333; }
.refresh-info { text-align: right; font-size: 1.2rem; }
.refresh-info p { margin: 5px 0; color: #333; }
.last-update { font-size: 1rem; color: #333; }
.display-content { flex: 1; padding: 40px; }
.ranking-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 2400px; margin: 0 auto; }
.contestant-card { background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 15px; padding: 25px; text-align: center; backdrop-filter: blur(10px); transition: all 0.3s ease; position: relative; overflow: hidden; }
.contestant-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.5); }
.contestant-card.rank-1 { background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%); border-color: #ffd700; color: #333; }
.contestant-number { font-size: 2.5rem; font-weight: bold; margin-bottom: 10px; color: inherit; }
.contestant-name { font-size: 2rem; font-weight: bold; margin-bottom: 15px; color: inherit; }
.contestant-score { font-size: 3rem; font-weight: bold; margin-bottom: 10px; color: inherit; }
.contestant-rank { font-size: 1.5rem; font-weight: bold; color: inherit; }
.contestant-card.no-score { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: #999; }
.contestant-card.no-score .contestant-score { font-size: 1.5rem; color: #999; }
.display-footer { background: rgba(0, 0, 0, 0.8); padding: 15px 40px; text-align: center; border-top: 2px solid #fff; font-size: 1.2rem; color: #ccc; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.contestant-card { animation: fadeIn 0.5s ease-out; }
@media (max-width: 1200px) { .ranking-list { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; } .display-header { padding: 15px 20px; } .display-title { font-size: 2.5rem; } .logo-text { font-size: 1.8rem; } .display-content { padding: 20px; } }
@media (max-width: 768px) { .ranking-list { grid-template-columns: 1fr; gap: 10px; } .display-header { flex-direction: column; gap: 10px; padding: 10px; } .display-title { font-size: 2rem; } .logo-text { font-size: 1.5rem; } .contestant-card { padding: 20px; } .contestant-number { font-size: 2rem; } .contestant-name { font-size: 1.5rem; } .contestant-score { font-size: 2.5rem; } }

/* 新增：当前选手显示样式 */
.current-contestant-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    transition: all 0.3s ease;
    text-align: center;
}

.current-contestant-display.no-score {
    background: #f5f5f5;
    color: #666;
}

.current-contestant-display.has-score {
    background: #f0e68c;
    color: #333;
}

/* 所有分数统一使用金色主题 */
.current-contestant-display.score-excellent {
    background: #f0e68c;
    color: #333;
}

.current-contestant-display.score-good {
    background: #f0e68c;
    color: #333;
}

.current-contestant-display.score-average {
    background: #f0e68c;
    color: #333;
}

.current-contestant-display.score-poor {
    background: #f0e68c;
    color: #333;
}

.contestant-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.score-container {
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contestant-score {
    font-size: 6rem;
    font-weight: bold;
    margin: 20px 0;
    color: inherit;
    transition: all 0.5s ease;
}

.contestant-score.waiting {
    font-size: 4rem;
    color: inherit;
}

.contestant-score.score-flip {
    /* 移除翻转动画 */
}

.contestant-rank {
    font-size: 1.2rem;
    margin-top: 10px;
    opacity: 0.9;
}

.score-count {
    font-size: 1rem;
    margin-top: 15px;
    opacity: 0.8;
}

.score-level {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-level.excellent {
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
}

.score-level.good {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

.score-level.average {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

.score-level.poor {
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
}

.no-data {
    text-align: center;
    color: #666;
    font-size: 1.5rem;
}

.no-data h2 {
    color: #333;
    margin-bottom: 10px;
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes scoreFlip {
    0% { 
        transform: rotateY(0deg) scale(0.8);
        opacity: 0;
    }
    50% { 
        transform: rotateY(90deg) scale(1.1);
        opacity: 0.5;
    }
    100% { 
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scoreComplete {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scoreGlow {
    0% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
    100% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 40px rgba(76, 175, 80, 0.6);
    }
}

@keyframes scoreGlowGold {
    0% {
        text-shadow: 0 0 15px rgba(240, 230, 140, 0.6);
    }
    100% {
        text-shadow: 0 0 20px rgba(240, 230, 140, 0.8), 0 0 25px rgba(245, 245, 220, 0.5);
    }
}

@keyframes levelPulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .current-contestant-display { padding: 20px; }
    .contestant-name { font-size: 1.5rem; }
    .contestant-score { font-size: 4rem; }
    .contestant-score.waiting { font-size: 3rem; }
}
